<template>
  <div id="app">

    <router-view></router-view>
    <tab-bar>
      <tar-bar-item path="/home" >
        <img slot="item-icon" src="./assets/image/1.png">
        <img slot="item-icon-active" src="./assets/image/4.png">
        <div slot="item-text">首页</div>
      </tar-bar-item>
      <tar-bar-item path="/ceshi" >
        <img slot="item-icon" src="./assets/image/2.png">
        <img slot="item-icon-active" src="./assets/image/4.png">
        <div slot="item-text">测试</div>
      </tar-bar-item>
      <tar-bar-item path="/category" >
        <img slot="item-icon" src="./assets/image/2.png">
        <img slot="item-icon-active" src="./assets/image/3.png">
        <div slot="item-text">分类</div>
      </tar-bar-item>
      <tar-bar-item path="/catr" >
        <img slot="item-icon" src="./assets/image/3.png">
        <img slot="item-icon-active" src="./assets/image/2.png">
        <div slot="item-text">购物车</div>
      </tar-bar-item>
      <tar-bar-item path="/profile" >
        <img slot="item-icon" src="./assets/image/4.png">
        <img slot="item-icon-active" src="./assets/image/1.png">
        <div slot="item-text">我的</div>
      </tar-bar-item>
    </tab-bar>
  </div>
</template>

<script>
import TabBar from './components/tabbat/TabBar'
import TarBarItem from './components/tabbat/TarBarItem'
export default {
  name: 'App',
  components: {
    TabBar,
    TarBarItem
  },
  data () {
    return {

    }
  },
  methods: {

  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

</style>
